
target_include_directories(${PROJECT_NAME} 
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/led
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/usart
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/i2c
    )

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} bsp)
target_sources(${PROJECT_NAME} 
    PRIVATE ${bsp})

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/led bsp_led)
target_sources(${PROJECT_NAME} 
    PRIVATE ${bsp_led})

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/usart bsp_usart)
target_sources(${PROJECT_NAME} 
    PRIVATE ${bsp_usart})

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/i2c bsp_i2c)
target_sources(${PROJECT_NAME} 
    PRIVATE ${bsp_i2c})